package com.wn.icloud.provider.uac.mapper;

import com.wn.icloud.provider.uac.entity.User;
import com.wn.icloud.provider.uac.service.dto.UserByWorkTeamReqDTO;
import com.wn.icloud.provider.uac.vo.TeamNameAndPlineName;
import org.apache.ibatis.annotations.Param;
import tk.mybatis.mapper.common.Mapper;

import java.util.List;

public interface UserMapper extends Mapper<User> {

    List<User> selectMemberByGroupId(@Param("groupId") int groupId);

    List<User> selectLeaderByGroupId(@Param("groupId") int groupId);

    List<UserByWorkTeamReqDTO> selectUserByWorkTeam(
            @Param("teamId") Long teamId ,
            @Param("userCode") String userCode,
            @Param("userName") String userName,
            @Param("page") Integer page,
            @Param("size") Integer size);

    TeamNameAndPlineName selectTeamNameAndPlineName(@Param("teamId") Long teamId);
}